package com.zwj.ruochuapiclientsdk;

import com.zwj.ruochuapiclientsdk.client.RuoChuApiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * RuoChuApi 客户端配置
 *
 * @author zwj
 */
@Configuration
@ConfigurationProperties("ruochu.api.client")
@Data
@ComponentScan
public class RuoChuApiClientConfig {

    private String accessKey;

    private String secretKey;

    @Bean
    public RuoChuApiClient yuApiClient() {
        return new RuoChuApiClient(accessKey, secretKey);
    }

}
